﻿using UnityEngine;
using System.Collections;

public class Ladder : MonoBehaviour { 

	/// <summary>
	/// 唯一编号
	/// </summary>
	public string onlyCode;
	/// <summary>
	/// The bottom y.
	/// </summary>
	public float bottomY;

	void OnTriggerEnter2D(Collider2D coll){
		if(coll.tag == "Player"){
			coll.SendMessage("EnterLader",this);
		}
	}

	void OnTriggerExit2D(Collider2D coll){
		if(coll.tag == "Player"){
			coll.SendMessage("ExitLader",this);
		}
	}

}
